package com.huifaapp.mall.activity.Homefragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.huifaapp.mall.R;

public class ContentActivity extends AppCompatActivity {

    private TextView tvConent;
    private TextView tvTitle;
    private ImageView iv_returnaftersale_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_content);
        tvConent = (TextView) findViewById(R.id.tv_contenttt);
        tvTitle = (TextView) findViewById(R.id.tv_content_title);
        iv_returnaftersale_back= (ImageView) findViewById(R.id.iv_returnaftersale_back);
        iv_returnaftersale_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        Intent intent = getIntent();
        tvTitle.setText(intent.getStringExtra("title"));
        String[] content = intent.getStringExtra("content").split(";");
        for (String value:content){
            tvConent.append(value+"\n");
        }

    }
}
